<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		//prompt 获取用户输入 弹出一个输入框,返回用户输入的信息
		var res = '';
		var init = '';
		
		init = setInterval(function(){
			res = prompt('快输入飞哥最帅');
			// console.log(res);
			if(res == '飞哥最帅'){
				clearInterval(init);
			}	
		},10);
	</script>
</body>
</html>